package net.cyue.nest.nestjava.common.interfaces.http;

import net.cyue.nest.nestjava.common.enums.HTTPStatus;

public interface IHTTPResponse {
  default void code(HTTPStatus status) {
    this.status(status);
  };
  void status(HTTPStatus status);


  void putHeader(String name, String value);
  void removeHeader(String name);

  void redirect(HTTPStatus status, String url);
  void redirect(String url);

  void end(String s);
  void send(String body);
  void send(Object body);
  void write(String s);
}
